import request from '@/utils/request'

// 获取车辆分页数据

export const getCartfenyedata = (params) => {
  return request({
    method: 'get',
    url: '/truck/page',
    params
  })
}
// 获取车辆详情基本信息

export const getCartInformation = (id) => {
  return request({
    method: 'get',
    url: `/truck/${id}`

  })
}
// 获取车辆名称

export const getCartName = () => {
  return request({
    method: 'get',
    url: '/truckType/simple'
  })
}

// 获取车辆行驶证信息

export const getdriveCertificate = (id) => {
  return request({
    method: 'get',
    url: `/truck/${id}/license`
  })
}

// 统计车辆状态
export function getWorkStatusApi () {
  return request({
    method: 'GET',
    url: '/count'
  })
}
